﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ICopy
{
    public partial class CopyWin : Form
    {
        public CopyWin()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.SelectAll();
            textBox1.Copy();
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            var ipy = IronPython.Hosting.Python.CreateRuntime();
            dynamic t = ipy.UseFile("ReplaceBlankScrip.py");
            textBox1.Text = t.ReplaceBlank(textBox1.Text);
        }
    }
}
